<#include "utils.ftl" />
<#include "../../macros/utils.ftl" />
<#import "../../macros/spring.ftl" as spring />

<#if m_site.m_get_view == "getQuestion">
	<#if !m_site.m_complete??>
		<#assign totalQuestion = m_site.m_totalQuestion?number/> 
		<#assign currIndex = (totalQuestion - m_site.remainingQuestions?number)/>
		<#assign question = m_site.m_question />
		<@displayQuestion question currIndex totalQuestion/>
	<#else>
		<@getResult />
	</#if>
	<script type="text/javascript">
	    base.exams.init();
	</script>
</#if>